home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacGames Sampler
/
PHT MacGames Bundle.iso
/
MacSource Folder
/
Samples from the CD
/
C and C++
/
Think Power 1.0B4
/
Extensions Src
/
THINK Power Extensions.h
< prev
next >
Wrap
Text File
|
1993-12-07
|
1KB
|
42 lines
//
// THINK Power Extensions.h - Written by Stefan Arentz, August 1993
//
#pragma once
// ———————————————— constants...
#define kTPExentsionType 'TpXt'
// ———————————————— structures...
typedef struct {
short version;
pascal Handle (*GetWindowContents)(WindowPtr theWindow);
pascal void (*GetSelection)(long *selStart, long *selEnd, long *firstChar);
pascal void (*SetSelection)(long selStart, long selEnd, long firstChar);
pascal void (*GetDocInfo)(WindowPtr theWindow, Str255 fileName, short *vRefNum, long *dirID);
pascal long (*GetModDate)(WindowPtr theWindow);
pascal Handle (*Copy)(void);
pascal Handle (*Paste)(Handle theText);
pascal long (*GetLastLine)(void);
pascal long (*GetLineNumber)(long selection);
pascal long (*GetLineStart)(long selection);
pascal long (*GetLineEnd)(long selection);
pascal long (*GetLinePos)(long line);
pascal void (*Insert)(char *text, long len);
pascal void (*Delete)(void);
pascal WindowPtr (*NewDocument)(void);
pascal WindowPtr (*OpenDocument)(void);
pascal void (*ContentsChanged)(WindowPtr w);
} TPCallbackBlock;